function DialogAddModel(doc, container, width, height, user, date, options, data) {
  this._doc = doc;
  this._container = container;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsDialogAddModel.gui(this._unique);
};

DialogAddModel.prototype._createElements = function() {
  var table, tr, td;
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.width = '460px';
  table.style.marginTop = '10px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '60px';
  td.style.height = '24px';
  td.appendChild(document.createTextNode('Model'));
  
  td = tr.insertCell(-1);
  var input = DOMUtils.createInput('', '', 'text', '', null);
  input.id = this._unique + '_model_text';
  input.style.width = '400px';
  td.appendChild(input);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.colSpan=2;
  td.style.height = '32px';
  td.style.verticalAlign = 'bottom';
  td.style.textAlign = 'center';
  var add = DOMUtils.createInput('', '', 'button', 'Add', null);
  add.id = this._unique + '_add_button';
  add.className = "button";
  td.appendChild(add);
  var cancel = DOMUtils.createInput('', '', 'button', 'cancel', null);
  cancel.id = this._unique + '_cancel_button';
  cancel.className = "button";
  td.appendChild(cancel);
};